﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.Master" CodeBehind="Details.aspx.vb" Inherits="RUHResturants.Details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        
    <table>
        <tr>
            <td>
                Google Map to show actual location</td>
            <td align="left" width="50%">
            <div class="HeaderFont">Resturant's Details:</div>
            
                <asp:DataList ID="DataList1" runat="server" DataKeyField="ResturantId" 
                    DataSourceID="SQLResturantDetails">
                    <ItemTemplate>
                    <table width="400px" cellpadding="3px">
                        <tr>
                            <td class="DetailsTableCol1">
                                Name:
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="RestNameLabel" runat="server" Text='<%# Eval("RestName") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailsTableCol1">
                                Food Type:
                        
                        
                            </td>
                            <td class="DetailsTableCol2">
                               <asp:Label ID="Label1" runat="server" 
                            Text='<%# Eval("FoodType") %>' />
  
                            </td>
                            <tr>
                            <td class="DetailsTableCol1">
                                Food Type Description:
                        
                        
                            </td>
                            <td class="DetailsTableCol2">
                               <asp:Label ID="Label2" runat="server" 
                            Text='<%# Eval("Description") %>' />
  
                            </td>
                        <tr>
                            <td class="DetailsTableCol1">
                                Address:
                        
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailsTableCol1">
                                Telephon:
                        
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="TelephonLabel" runat="server" Text='<%# Eval("Telephon") %>' />
                        
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailsTableCol1">
                               Email:
                        
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="EmailLabel" runat="server" Text='<%# Eval("Email") %>' />
                        
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailsTableCol1">
                                Price Level:
                       
                            </td>
                            <td class="DetailsTableCol2">
                                 <asp:Label ID="PriceLevelLabel" runat="server" 
                            Text='<%# Eval("PriceLevel") %>' />
                        
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailsTableCol1">
                                Luxury Level:
                        
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="LuxuryLevelLabel" runat="server" 
                            Text='<%# Eval("LuxuryLevel") %>' />
                        
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailsTableCol1">
                                Eating Service Type:
                        
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="EatingServiceLabel" runat="server" 
                            Text='<%# Eval("EatingService") %>' />
  
                            </td>
                        </tr>
                            <tr>
                            <td class="DetailsTableCol1">
                                Working Hours:
                        
                        
                            </td>
                            <td class="DetailsTableCol2">
                               <asp:Label ID="WorkingHoursLabel" runat="server" 
                            Text='<%# Eval("WorkingHours") %>' />
  
                            </td>
                        </tr>
                            <tr>
                            <td class="DetailsTableCol1">
                                Added by:
                        
                        
                            </td>
                            <td class="DetailsTableCol2">
                                <asp:Label ID="UserNameLabel" runat="server" Text='<%# Eval("UserName") %>' />
                        
  
                            </td>
                        </tr>
                    </table>
                        
                    </ItemTemplate>
                </asp:DataList>
                <asp:SqlDataSource ID="SQLResturantDetails" runat="server" 
                    ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\RUHRestaurantsDB.accdb;Persist Security Info=True" 
                    ProviderName="System.Data.OleDb">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="DetailsImages">
                Images:<br />
                <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource1" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" BorderWidth="1px" ImageUrl='<%# Eval("ImgName", "RestImages/{0}") %>' Height="80" Width="70" />
                    </ItemTemplate>
                </asp:DataList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\RUHRestaurantsDB.accdb" 
                    ProviderName="System.Data.OleDb" >
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                COMMENTS</td>
        </tr>
        <tr>
            <td colspan="2">
                ADD NEW COMMENT</td>
        </tr>
    </table>

        
</asp:Content>
